package com.demo7;

/**
 * Created by Administrator on 2017/3/27.
 */
class Father2 {
    String str = "父类的Str成员变量";
}

class Son2 extends Father2 {
    String str = "子类的Str成员变量";

    void show() {
        System.out.println(super.str);
    }
}

public class FengZhuang5 {
    public static void main(String[] args) {
        Son2 son = new Son2();
        System.out.println("调用隐藏的父类成员变量");
        son.show();
    }
}
